package main

import "fmt"

func main() {

	//	 结构体之间的转换
	var s = new(Student)
	s.id = 100
	s.Name = "张三"
	s.Age = 18
	fmt.Println("s====", s)
	var p = new(Person)

	p = (*Person)(s)
	p.Age = 19
	fmt.Println("s====", p)

}

type Student struct {
	Age  int
	Name string
	id   int
}

//type Person struct {
//	Age  int
//	Name string
//	id   int
//}
